#ifndef _CANIMATION_H_
    #define _CANIMATION_H_
 
#include <SDL.h>
class CAnimation
{
private:
	int CurrentFrame;
	int FrameInc;

	int  FrameDelta;
	long OldTime;

public:
	int MaxFrames;
	//Animation-g ihseed butsaad yavdag bolgoh bolomj
	//Used in OnAnimate() function.
	bool Oscillate;

	//asfasfafa
	// TODO Fix this function.


	CAnimation(void);
	void OnAnimate();
	void SetFrameRate(int Rate0);
	void SetCurrentFrame(int Frame);
	int GetCurrentFrame();
};

#endif